package com.hl.icd.bean;

import lombok.Data;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Table;

@Data
@Table(name = "icd_history")
@NameStyle(value = Style.normal)
public class ICDHistory {
    private String id;
    private String icdCode;
    private String name;
    private String typeid;
    private String editType;
    private String editBy;
    private String editTime;

    public ICDHistory(String id, String icdCode, String name, String typeid, String editType, String editBy, String editTime) {
        this.id = id;
        this.icdCode = icdCode;
        this.name = name;
        this.typeid = typeid;
        this.editType = editType;
        this.editBy = editBy;
        this.editTime = editTime;
    }

    public ICDHistory(ICD icd, String editType, String editBy, String editTime) {
        this.id = icd.getId();
        this.icdCode = icd.getIcdCode();
        this.name = icd.getName();
        this.typeid = icd.getType();
        this.editType = editType;
        this.editBy = editBy;
        this.editTime = editTime;
    }
}
